package com.blb.common.entity.VO;

import com.blb.common.utils.DBField;

/**
 * @author lvtian
 * @date 2023/1/3 19:44
 */
public class QuestionVO {
    private Integer id;
    private String content;
    @DBField(fieldName = "option_a")
    private String optionA;
    @DBField(fieldName = "option_b")
    private String optionB;
    @DBField(fieldName = "option_c")
    private String optionC;
    @DBField(fieldName = "option_d")
    private String optionD;
    private String answer;
    private Integer difficulty;
    @DBField(fieldName = "question_set_id")
    private Integer questionSetId;

    public QuestionVO(Integer id, String content, String optionA, String optionB, String optionC, String optionD, String answer, Integer difficulty, Integer questionSetId) {
        this.id = id;
        this.content = content;
        this.optionA = optionA;
        this.optionB = optionB;
        this.optionC = optionC;
        this.optionD = optionD;
        this.answer = answer;
        this.difficulty = difficulty;
        this.questionSetId = questionSetId;
    }

    public QuestionVO() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getOptionA() {
        return optionA;
    }

    public void setOptionA(String optionA) {
        this.optionA = optionA;
    }

    public String getOptionB() {
        return optionB;
    }

    public void setOptionB(String optionB) {
        this.optionB = optionB;
    }

    public String getOptionC() {
        return optionC;
    }

    public void setOptionC(String optionC) {
        this.optionC = optionC;
    }

    public String getOptionD() {
        return optionD;
    }

    public void setOptionD(String optionD) {
        this.optionD = optionD;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Integer getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(Integer difficulty) {
        this.difficulty = difficulty;
    }

    public Integer getQuestionSetId() {
        return questionSetId;
    }

    public void setQuestionSetId(Integer questionSetId) {
        this.questionSetId = questionSetId;
    }

    @Override
    public String toString() {
        return "QuestionVO{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", optionA='" + optionA + '\'' +
                ", optionB='" + optionB + '\'' +
                ", optionC='" + optionC + '\'' +
                ", optionD='" + optionD + '\'' +
                ", answer='" + answer + '\'' +
                ", difficulty=" + difficulty +
                ", questionSetId=" + questionSetId +
                '}';
    }
}
